package com.platform.service.impl;

import com.platform.dao.OrderDetailDao;
import com.platform.entity.OrderDetailEntity;
import com.platform.service.OrderDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 订单详情Service实现类
 *
 * @author liweihai
 * @email liweihai12345@sina.com
 * @date 2019-04-24 17:10:46
 */
@Service("tOrderDetailService")
public class OrderDetailServiceImpl implements OrderDetailService {
    @Autowired
    private OrderDetailDao orderDetailDao;

    @Override
    public OrderDetailEntity queryObject(String orderNo) {
        return orderDetailDao.queryObject(orderNo);
    }

    @Override
    public List<OrderDetailEntity> queryList(Map<String, Object> map) {
        return orderDetailDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return orderDetailDao.queryTotal(map);
    }

    @Override
    public int save(OrderDetailEntity tOrderDetail) {
        return orderDetailDao.save(tOrderDetail);
    }

    @Override
    public int update(OrderDetailEntity tOrderDetail) {
        return orderDetailDao.update(tOrderDetail);
    }

    @Override
    public int delete(String orderNo) {
        return orderDetailDao.delete(orderNo);
    }

    @Override
    public int deleteBatch(String[] orderNos) {
        return orderDetailDao.deleteBatch(orderNos);
    }

    @Override
    public BigDecimal queryRateValue(String orderNo) {
        return orderDetailDao.queryRateValue(orderNo);
    }
}
